<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page contentType="text/html; charset=utf-8"%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>平台管理系统</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
    <style>
        thead tr th{text-align: center!important;}
        tr td{text-align: center!important;}
    </style>
</head>
<body>
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <form action="/base/logs" id="seachFrom">
                    <div class="layui-card-body">
                        <div class="test-table-reload-btn layui-col-sm-offset3" style="margin-bottom: 10px;">
                            <div class="layui-col-sm1" style="line-height: 38px">时间范围：</div>
                            <div class="layui-col-sm3">
                                <input class="layui-input" name="queryTime" id="laydate-cn" autocomplete="off">
                            </div>
                            <button class="layui-btn" type="submit" style="margin-left: 10px">搜索</button>
                        </div>
                        <table class="layui-table">
                            <thead>
                            <tr>
                                <th>操作账号|角色</th>
                                <th>IP</th>
                                <th>请求的链接</th>
                                <th>执行的模块</th>
                                <th>执行的方法</th>
                                <th>执行时间(毫秒)</th>
                                <th>描述</th>
                                <th>操作时间</th>
                            </tr>
                            </thead>
                            <tbody>
                            <c:forEach items="${pageInfo.records}" var="l">
                                <tr class="text-c">
                                    <td>${l.loginAccount}</td>
                                    <td>${l.loginIp}</td>
                                    <td>${l.actionUrl}</td>
                                    <td>${l.module}</td>
                                    <td>${l.method}</td>
                                    <td>${l.actionTime}</td>
                                    <td>${l.description}</td>
                                    <td><fmt:formatDate value="${l.createtime}" pattern="yyyy-MM-dd HH:mm:ss"></fmt:formatDate></td>
                                </tr>
                            </c:forEach>
                            </tbody>
                        </table>
                        <div class="test-table-reload-btn" style="margin-top: 10px;">
                            <%@include file="../paging.jsp" %>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>

<script src="/layuiadmin/layui/layui.js"></script>
<script>
    layui.config({
        base: '/layuiadmin/' //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index', 'laydate'], function(){
        var laydate = layui.laydate;
        var today = new Date();
        var last = today.getFullYear() + "-" + today.getMonth() + "-" +today.getDate();
        today = today.getFullYear() + "-" + (today.getMonth()+1) + "-" +today.getDate();
        laydate.render({
            elem: '#laydate-cn',
            range:'~',
            max:today
        });
    });
</script>
</body>
</html>